package com.axxc.jpa.pattendegign.facade;

/**
 * @ClassName Phone
 * @Description //TODO 构造方法实现门面模式,外观模式
 * @author xxc
 * @data 2018年9月13日下午9:51:08
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class Phone {

	public Phone(String name, Double price) {
		this(null, name, price);
	}

	public Phone(String color) {
		this(color, null, null);
	}

	public Phone(String color, String name, Double price) {
		super();
		this.color = color;
		this.name = name;
		this.price = price;
	}

	private String color;
	private String name;
	private Double price;

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

}
